package com.eascs.workflow.sys.dao;

import org.springframework.stereotype.Repository;

import com.eascs.workflow.aging.entity.ProcessInfoEntity;
import com.eascs.workflow.common.dao.BaseDao;

/**
 * 
 * 字典详情表 Dao
 *
 */
@Repository
public class PubDditemDao extends BaseDao{
	/**
	 * 根据dd_no和item_code查询出 字典实体
	 * @param dd_code
	 * @param code
	 * @return
	 */
	public ProcessInfoEntity queryPubDditem(String type,String code){
		String sql="select t.name from wf_dictionary_data t where t.type= ? and t.code=?;";
		return this.findEntity(sql, ProcessInfoEntity.class, type.trim(),code.trim());
	}

}
